package com.yazi.mxz.behavior.repository;


import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.geo.Distance;
import org.springframework.data.geo.Point;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.yazi.mxz.behavior.entity.repository.Store;

public interface StoreRepository extends MongoRepository<Store, Long> {
	
	Page<Store> findByLocationNear(Point location, Distance dis, Pageable pageable);
	Page<Store> findByNameLikeAndLocationNear(String searchWord, Point location, Distance dis, Pageable pageable);
}
